// 第一步导入请求模块
import request from '@/util/request'
// 请求模板---视图发送请求时只需要传递一个对象即可
export function getDoctorList() {
    return request({
        method: 'GET',
        url: '/hospital/doctor/list',
    })
}
// 查询搜索框的数据
export function getDoctorNameList(params) {
    return request({
        method: 'GET',
        url: '/hospital/doctor/name/list',
        data: { params }
    })
}
// 删除医生信息
export function getDoctorRemove(params) {
    return request({
        method: 'DELETE',
        url: '/hospital/doctor/remove/detail',
        data: {params}
    })
}

export function getDoctorDetail(params) {
    return request({
        method: 'GET',
        url: '/hospital/doctor/detail',
        data: {params}
    })
}